package com.qianfeng.zhangwei.volley.http;

import com.android.volley.Request;

/**
 * @Package com.qianfeng.zw.day36.http
 * @作 用:
 * @创建人: zhangwei
 * @日 期: 2015-05-05 16:15
 * @修 改 人: v1.0
 * @日 期:
 * @修 订 版:
 */
public class AbsLoadControler implements LoadControler {

    protected Request<?> mRequest;

    public void bindRequest(Request<?> request) {
        this.mRequest = request;
    }

    @Override
    public void cancel() {
        if (this.mRequest != null) {
            this.mRequest.cancel();
        }
    }

    protected String getOriginUrl() {
        return this.mRequest.getOriginUrl();
    }
}
